﻿using Microsoft.Extensions.Configuration;

namespace 命令行配置
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var confBuilder = new ConfigurationBuilder();
            confBuilder.AddCommandLine(args);
            var config = confBuilder.Build();
            var per = config.Get<Person>();
            Console.WriteLine(per.ToString());
            Console.ReadKey();
        }
    }
}